package com.tjbaobao.videoplayol.activity;

import android.os.Bundle;

import com.tjbaobao.framework.entity.ui.TitleBarInfo;
import com.tjbaobao.framework.tjbase.TJActivity;
import com.tjbaobao.framework.ui.BaseTitleBar;
import com.tjbaobao.videoplayol.R;
import com.tjbaobao.videoplayol.base.AppActivity;
import com.tjbaobao.videoplayol.modal.info.VideoCacheInfo;

/**
 *
 * Created by TJbaobao on 2018/1/20.
 */

public class VideoConfigActivity extends AppActivity {

    private VideoCacheInfo videoCacheInfo ;
    @Override
    protected void onInitValues(Bundle bundle) {
        videoCacheInfo = (VideoCacheInfo) this.getIntent().getSerializableExtra("videoCacheInfo");
    }
    @Override
    protected void onInitView() {
        setContentView(R.layout.video_config_activity_layout);
    }

    @Override
    protected void onInitTitleBar(BaseTitleBar baseTitleBar) {
        baseTitleBar.setTitle(getStringById(R.string.video_config_title));
        baseTitleBar.addImageToLeft(R.drawable.fw_ic_back);
    }

    @Override
    protected void onLoadData() {

    }

    @Override
    public <V extends TitleBarInfo.BaseView> void onTitleBarClick(int layoutType, int position, V info) {
        if(layoutType==BaseTitleBar.LAYOUT_LEFT&&position==0)
        {
            this.finish();
        }
    }
}
